.PHONY:all
all: ticket mutex cond
ticket:ticket_test.cc
	g++ -o $@ $^ -std=c++11 -lpthread
mutex:pthread_mutex_init.cc
	g++ -o $@ $^ -std=c++11 -lpthread
cond:pthread_cond_init.cc
	g++ -o $@ $^ -std=c++11 -lpthread
.PHONY:clean
clean:
	rm -f ticket mutex cond 